home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / cellgame.swf / scripts / frame_2 / PlaceObject2_11_8 / CLIPACTIONRECORD onClipEvent(load).as < prev    next >
Encoding:
Text File  |  2006-06-13  |  663 b   |  23 lines

  1. onClipEvent(load){
  2.    function hit(whichShot)
  3.    {
  4.       removeMovieClip(whichShot);
  5.       _root.actions.explosion(this);
  6.       if(whichShot == 0 || _root.newShot1000 || _root.newShot2000 || _root.newShot3000 || _root.newShot4000)
  7.       {
  8.          _root.actions.score += scoreAmount;
  9.       }
  10.       removeMovieClip(this);
  11.    }
  12.    if(_name != "glob")
  13.    {
  14.       scoreAmount = 25;
  15.       _root.actions.totalCells = _root.actions.totalCells + 1;
  16.       angle = Math.random() * 6.283185307179586;
  17.       speed = random(5) + 1;
  18.       xSpeed = Math.sin(angle) * speed;
  19.       ySpeed = Math.cos(angle) * speed;
  20.       rotateSpeed = random(8) - 4;
  21.    }
  22. }
  23.